﻿using System.Windows.Controls;
using System.Windows.Data;
using System.Xml.Linq;
using Acando.Dynamics.CRM.Silverlight.Library.Controls;
using  Acando.Dynamics.CRM.Silverlight.Library.Converter;
using Acando.Dynamics.CRM.Silverlight.Library.Interfaces;

namespace Acando.Dynamics.CRM.Silverlight.Library.Controls.FieldControls
{
    public partial class CrmMemoControl : BaseValueControl
    {
        public CrmMemoControl(IRecordControl recordControl, string controlType, string fieldName)
            : base(recordControl, controlType, fieldName)
        {
            InitializeComponent();

            this.txtMemo.IsReadOnly = recordControl.IsReadOnly;
            this.txtMemo.SetBinding(TextBox.TextProperty, this.GetBinding(recordControl, controlType, fieldName));

        }
    }
}
